Optimal. Leaf size=39 \[ -\frac{(x+1)^2}{4 \left (x^2+1\right )^2}-\frac{1-x}{4 \left (x^2+1\right )}+\frac{1}{4} \tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0151613, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {819, 639, 203} \[ -\frac{(x+1)^2}{4 \left (x^2+1\right )^2}-\frac{1-x}{4 \left (x^2+1\right )}+\frac{1}{4} \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 819
Rule 639
Rule 203
Rubi steps
\begin{align*} \int \frac{x (1+x)^2}{\left (1+x^2\right )^3} \, dx &=-\frac{(1+x)^2}{4 \left (1+x^2\right )^2}+\frac{1}{4} \int \frac{2+2 x}{\left (1+x^2\right )^2} \, dx\\ &=-\frac{(1+x)^2}{4 \left (1+x^2\right )^2}-\frac{1-x}{4 \left (1+x^2\right )}+\frac{1}{4} \int \frac{1}{1+x^2} \, dx\\ &=-\frac{(1+x)^2}{4 \left (1+x^2\right )^2}-\frac{1-x}{4 \left (1+x^2\right )}+\frac{1}{4} \tan ^{-1}(x)\\ \end{align*}
Mathematica [A] time = 0.0146702, size = 28, normalized size = 0.72 \[ \frac{1}{4} \left (\frac{x^3-2 x^2-x-2}{\left (x^2+1\right )^2}+\tan ^{-1}(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 29, normalized size = 0.7 \begin{align*}{\frac{1}{ \left ({x}^{2}+1 \right ) ^{2}} \left ({\frac{{x}^{3}}{4}}-{\frac{{x}^{2}}{2}}-{\frac{x}{4}}-{\frac{1}{2}} \right ) }+{\frac{\arctan \left ( x \right ) }{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.50945, size = 43, normalized size = 1.1 \begin{align*} \frac{x^{3} - 2 \, x^{2} - x - 2}{4 \,{\left (x^{4} + 2 \, x^{2} + 1\right )}} + \frac{1}{4} \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.25249, size = 101, normalized size = 2.59 \begin{align*} \frac{x^{3} - 2 \, x^{2} +{\left (x^{4} + 2 \, x^{2} + 1\right )} \arctan \left (x\right ) - x - 2}{4 \,{\left (x^{4} + 2 \, x^{2} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.195625, size = 27, normalized size = 0.69 \begin{align*} \frac{\operatorname{atan}{\left (x \right )}}{4} + \frac{x^{3} - 2 x^{2} - x - 2}{4 x^{4} + 8 x^{2} + 4} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.21852, size = 36, normalized size = 0.92 \begin{align*} \frac{x^{3} - 2 \, x^{2} - x - 2}{4 \,{\left (x^{2} + 1\right )}^{2}} + \frac{1}{4} \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]